<?php
/**
 * Created by PhpStorm
 * USER MingTingLiang   QQ 915802070
 * Date 2020-12-18-018   9:46
 */


require "store/State.php";
$state = new State();
$GLOBALS['State'] = $state;

//class BaseController extends \think\Controller   大多数
class BaseController
{
    public function __get($name)
    {
       // die($name);
        // TODO: Implement __get() method.
        if ($name == "State") {
          //  var_dump($GLOBALS['State']);
            return $GLOBALS['State'];
        }
    }
}